package com.itheima.admin.service;

import com.itheima.PageVo;
import com.itheima.admin.dto.RoleAuthDto;
import com.itheima.admin.dto.RoleDto;
import com.itheima.admin.dto.RolePageDto;
import com.itheima.admin.vo.RoleVo;

import java.util.List;
import java.util.Map;

/**
 * @author WXL
 */
public interface IRoleService {
    PageVo<RoleVo> queryByPage(RolePageDto rolePageDto);

    List<RoleVo> queryAll();

    boolean addRole(RoleDto roleDto);

    boolean deleteRole(String roleId);

    boolean roleAuth(RoleAuthDto roleAuthDto);

    RoleVo queryById(String roleId);

    boolean editRole(RoleVo roleVo);

    List<String> queryModulesById(String roleId);
}
